package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ResultSetCursor implements CursorIntent {

    private int beginIndex;
    private int endIndex;
    private SpecificRoutineDesignator specificRoutineDesignator;

    public ResultSetCursor(int beginIndex,
                           SpecificRoutineDesignator specificRoutineDesignator) {
        this.beginIndex = beginIndex;
        this.endIndex = specificRoutineDesignator.getEndIndex();
        this.specificRoutineDesignator = specificRoutineDesignator;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SpecificRoutineDesignator getSpecificRoutineDesignator() {
        return specificRoutineDesignator;
    }

}
